const open = require('open');

module.exports = function(url) {
    try {
        var options = {
            app: process.env.BROWSER,
            url: true
        }
        open(url, options).catch(() => {}) // Prevent `unhandledRejection` error.
        return true
    } catch (err) {
        return false
    }
}